using System;
using System.Collections.Generic;
using System.Text;

namespace Lizk.DShowPlayer
{

    public class PlayerEventArgs : EventArgs
    {
        private PlayerState state;
        private PlayerState oldState;

        public PlayerState OldState
        {
            get { return oldState; }
            set { oldState = value; }
        }

        public PlayerState NewState
        {
            get { return state; }
            set { state = value; }
        }

        public PlayerEventArgs(PlayerState newState, PlayerState oldState)
        {
            this.state = newState;
            this.oldState = oldState;
        }

    }


    public class LanguageEventArgs : EventArgs
    {
        private int audioTrack;

        public int AudioTrack
        {
            get { return audioTrack; }
            set { audioTrack = value; }
        }
        private int subtitle;

        public int Subtitle
        {
            get { return subtitle; }
            set { subtitle = value; }
        }
        private string subtitleText;

        public string SubtitleText
        {
            get { return subtitleText; }
            set { subtitleText = value; }
        }

        private string audioTrackText;

        public string AudioTrackText
        {
            get { return audioTrackText; }
            set { audioTrackText = value; }
        }


        public LanguageEventArgs(int subtitle, string subtitleName, int audioTrack, string audioTrackName)
        {
            this.audioTrack = audioTrack;
            this.subtitle = subtitle;
            this.subtitleText = subtitleName;
            this.audioTrackText = audioTrackName;
        }

    }
}
